|
|
|
|
|
|
|
Enter CityStZip as the formula name and click OK. This displays the Edit Formula dialog box, as shown in Figure 13.17, with the name of the formula in the title bar of the dialog box. |
|
|
|
|
|
|
|
|
Figure 13.16.
Adding a new formula or choosing
an existing one from the Insert
Formula dialog box. |
|
|
|
|
|
|
|
|
Now follow these steps create the new calculated field: |
|
|
|
|
|
|
|
|
1. In the Functions list box, scroll down the list until you find the TrimRight(x) function in the Strings section and double-click it to add it to the Formula edit area. |
|
|
|
|
|
|
|
|
Figure 13.17.
Creating a new formula with the Edit Formula dialog box. |
|
|
|
|
|
|
|
|
2. Find the City field in the Fields list box. In the Formula edit area, you should notice that the cursor is between the open and close parenthesis. This enables you to double-click the City field to have it placed in the function. |
|
|
|
|
|
|
|
|
3. After you have added the City field, move the cursor to the end of the line and enter a plus sign (+), which can be found in the Operators list box in the Strings section, or you can just type it in. This performs a string concatenation using the trimmed City field and the next field that you will add. |
|
|
|
|
|